package com.myTest.demo;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;

public class Handler {
    private Object controller;// method.invoke(obj,)
    private Method method;
    private Pattern pattern;

    private String[] security={};

    private Map<String,Integer> paramterMapping = new HashMap<>();

    public Handler(Object controller, Method method, Pattern pattern) {
        this.controller = controller;
        this.method = method;
        this.pattern = pattern;
        this.paramterMapping=new HashMap<>();
    }

    public String[] getSecurity() {
        return security;
    }

    public void setSecurity(String[] security) {
        this.security = security;
    }

    public Object getController() {
        return controller;
    }

    public void setController(Object controller) {
        this.controller = controller;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Pattern getPattern() {
        return pattern;
    }

    public void setPattern(Pattern pattern) {
        this.pattern = pattern;
    }

    public Map<String, Integer> getParamterMapping() {
        return paramterMapping;
    }

    public void setParamterMapping(Map<String, Integer> paramterMapping) {
        this.paramterMapping = paramterMapping;
    }
}
